package com.yellow.dispatchservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("route_plans")
public class RoutePlan {

    @TableId(value = "route_id", type = IdType.AUTO)
    private Integer routeId;

    @TableField("dispatch_id")
    private Integer dispatchId;

    @TableField("start_point")
    private String startPoint;

    @TableField("end_point")
    private String endPoint;

    @TableField("estimated_time")
    private LocalTime estimatedTime;
}
